/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Edita.java
 *
 * Created on 16/11/2011, 21:32:31
 */
package gerenciadorescola.view;

import java.awt.Image;
import java.awt.Toolkit;

/**
 *
 * @author Pedro Freitas
 */
public class Edita extends javax.swing.JFrame {

    /** Creates new form Edita */
    public Edita() {
        initComponents();
        try {
            Image icon = Toolkit.getDefaultToolkit().getImage("src/gerenciadorescola/imagens/uff.png");
            setIconImage(icon);
        } catch (Exception e) {
            e.getStackTrace();
        }
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        buttonGroup2 = new javax.swing.ButtonGroup();
        buttonGroup3 = new javax.swing.ButtonGroup();
        buttonGroup4 = new javax.swing.ButtonGroup();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel1 = new javax.swing.JPanel();
        nomeALabel = new javax.swing.JLabel();
        nomeAText = new javax.swing.JTextField();
        matriculaLabel = new javax.swing.JLabel();
        matriculaText = new javax.swing.JTextField();
        idadeALabel = new javax.swing.JLabel();
        idadeAText = new javax.swing.JTextField();
        cpfALabel = new javax.swing.JLabel();
        cpfAText = new javax.swing.JTextField();
        sexoALabel = new javax.swing.JLabel();
        mascARadioButton = new javax.swing.JRadioButton();
        femARadioButton = new javax.swing.JRadioButton();
        telALabel = new javax.swing.JLabel();
        telAText = new javax.swing.JTextField();
        endALabel = new javax.swing.JLabel();
        endAText = new javax.swing.JTextField();
        nometurmaLabel = new javax.swing.JLabel();
        nomeTurmaText = new javax.swing.JTextField();
        linguaALabel = new javax.swing.JLabel();
        inglesARadioButton = new javax.swing.JRadioButton();
        espanholARadioButton = new javax.swing.JRadioButton();
        francesARadioButton = new javax.swing.JRadioButton();
        voltarAButton = new javax.swing.JButton();
        editarAButton = new javax.swing.JButton();
        jPanel2 = new javax.swing.JPanel();
        jPanel4 = new javax.swing.JPanel();
        dirRadioButton = new javax.swing.JRadioButton();
        profRadioButton = new javax.swing.JRadioButton();
        nomeFLabel = new javax.swing.JLabel();
        nomeFText = new javax.swing.JTextField();
        idadeFLabel = new javax.swing.JLabel();
        idadeFText = new javax.swing.JTextField();
        cpfFLabel = new javax.swing.JLabel();
        cpfFText = new javax.swing.JTextField();
        sexoFLabel = new javax.swing.JLabel();
        mascFRadioButton = new javax.swing.JRadioButton();
        femFRadioButton = new javax.swing.JRadioButton();
        telFLabel = new javax.swing.JLabel();
        telFText = new javax.swing.JTextField();
        endFLabel = new javax.swing.JLabel();
        endFText = new javax.swing.JTextField();
        salarioLabel = new javax.swing.JLabel();
        salarioText = new javax.swing.JTextField();
        espcialLabel = new javax.swing.JLabel();
        especialText = new javax.swing.JTextField();
        voltarFButton = new javax.swing.JButton();
        editarFButton = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Edita - Escola TPA");

        nomeALabel.setText("Nome :");

        matriculaLabel.setText("Matrícula :");

        idadeALabel.setText("Idade :");

        cpfALabel.setText("CPF :");

        sexoALabel.setText("Sexo :");

        buttonGroup1.add(mascARadioButton);
        mascARadioButton.setText("M");

        buttonGroup1.add(femARadioButton);
        femARadioButton.setText("F");

        telALabel.setText("Telefone :");

        endALabel.setText("Endereço :");

        nometurmaLabel.setText("Turma :");

        linguaALabel.setText("Lingua Estrangeira :");

        buttonGroup2.add(inglesARadioButton);
        inglesARadioButton.setText("Inglês");

        buttonGroup2.add(espanholARadioButton);
        espanholARadioButton.setText("Espanhol");

        buttonGroup2.add(francesARadioButton);
        francesARadioButton.setText("Francês");

        voltarAButton.setText("Voltar");
        voltarAButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                voltarAButtonActionPerformed(evt);
            }
        });

        editarAButton.setText("Editar");
        editarAButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                editarAButtonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(sexoALabel)
                        .addGap(18, 18, 18)
                        .addComponent(mascARadioButton)
                        .addGap(18, 18, 18)
                        .addComponent(femARadioButton)
                        .addContainerGap(238, Short.MAX_VALUE))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(telALabel)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(telAText, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap())
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(nometurmaLabel)
                        .addGap(18, 18, 18)
                        .addComponent(nomeTurmaText, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap(176, Short.MAX_VALUE))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(linguaALabel)
                        .addGap(18, 18, 18)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(espanholARadioButton)
                            .addComponent(inglesARadioButton)
                            .addComponent(francesARadioButton))
                        .addContainerGap(186, Short.MAX_VALUE))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
                                .addComponent(matriculaLabel)
                                .addGap(18, 18, 18)
                                .addComponent(matriculaText, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
                                .addComponent(idadeALabel)
                                .addGap(18, 18, 18)
                                .addComponent(idadeAText, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(34, 34, 34)
                                .addComponent(cpfALabel)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(cpfAText, javax.swing.GroupLayout.DEFAULT_SIZE, 204, Short.MAX_VALUE))
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
                                .addComponent(nomeALabel)
                                .addGap(18, 18, 18)
                                .addComponent(nomeAText, javax.swing.GroupLayout.PREFERRED_SIZE, 299, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(editarAButton)
                                    .addGroup(jPanel1Layout.createSequentialGroup()
                                        .addComponent(endALabel)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(endAText, javax.swing.GroupLayout.DEFAULT_SIZE, 218, Short.MAX_VALUE)))
                                .addGap(18, 18, 18)
                                .addComponent(voltarAButton)))
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(36, 36, 36)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(nomeALabel)
                    .addComponent(nomeAText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(matriculaLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(matriculaText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(idadeALabel)
                    .addComponent(idadeAText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cpfALabel)
                    .addComponent(cpfAText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(sexoALabel)
                            .addComponent(mascARadioButton)
                            .addComponent(femARadioButton))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(telALabel)
                            .addComponent(telAText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(endALabel)
                            .addComponent(endAText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(nometurmaLabel)
                            .addComponent(nomeTurmaText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(linguaALabel)
                            .addComponent(inglesARadioButton))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(espanholARadioButton)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(francesARadioButton)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 30, Short.MAX_VALUE)
                        .addComponent(editarAButton))
                    .addComponent(voltarAButton))
                .addContainerGap())
        );

        jTabbedPane1.addTab("Aluno", jPanel1);

        jPanel4.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        buttonGroup3.add(dirRadioButton);
        dirRadioButton.setText("Diretor");

        buttonGroup3.add(profRadioButton);
        profRadioButton.setText("Professor");

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addComponent(profRadioButton)
                .addGap(91, 91, 91)
                .addComponent(dirRadioButton)
                .addContainerGap(130, Short.MAX_VALUE))
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(dirRadioButton)
                .addComponent(profRadioButton))
        );

        nomeFLabel.setText("Nome :");

        idadeFLabel.setText("Idade :");

        cpfFLabel.setText("CPF :");

        sexoFLabel.setText("Sexo :");

        buttonGroup4.add(mascFRadioButton);
        mascFRadioButton.setText("M");

        buttonGroup4.add(femFRadioButton);
        femFRadioButton.setText("F");

        telFLabel.setText("Telefone :");

        endFLabel.setText("Endereço :");

        salarioLabel.setText("Salário :");

        espcialLabel.setText("Especialização :");

        voltarFButton.setText("Voltar");
        voltarFButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                voltarFButtonActionPerformed(evt);
            }
        });

        editarFButton.setText("Editar");
        editarFButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                editarFButtonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel2Layout.createSequentialGroup()
                            .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGap(14, 14, 14))
                        .addGroup(jPanel2Layout.createSequentialGroup()
                            .addComponent(nomeFLabel)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(nomeFText, javax.swing.GroupLayout.PREFERRED_SIZE, 297, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap(28, Short.MAX_VALUE))
                        .addGroup(jPanel2Layout.createSequentialGroup()
                            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()
                                    .addComponent(sexoFLabel)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(mascFRadioButton))
                                .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()
                                    .addComponent(idadeFLabel)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(idadeFText, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(jPanel2Layout.createSequentialGroup()
                                    .addGap(33, 33, 33)
                                    .addComponent(cpfFLabel)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(cpfFText, javax.swing.GroupLayout.DEFAULT_SIZE, 191, Short.MAX_VALUE)
                                    .addGap(32, 32, 32))
                                .addGroup(jPanel2Layout.createSequentialGroup()
                                    .addGap(18, 18, 18)
                                    .addComponent(femFRadioButton)
                                    .addContainerGap())))
                        .addGroup(jPanel2Layout.createSequentialGroup()
                            .addComponent(telFLabel)
                            .addGap(18, 18, 18)
                            .addComponent(telFText, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap(167, Short.MAX_VALUE))
                        .addGroup(jPanel2Layout.createSequentialGroup()
                            .addComponent(endFLabel)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(endFText, javax.swing.GroupLayout.DEFAULT_SIZE, 279, Short.MAX_VALUE)
                            .addGap(28, 28, 28))
                        .addGroup(jPanel2Layout.createSequentialGroup()
                            .addComponent(salarioLabel)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(salarioText, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap(214, Short.MAX_VALUE))
                        .addGroup(jPanel2Layout.createSequentialGroup()
                            .addComponent(espcialLabel)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(especialText, javax.swing.GroupLayout.DEFAULT_SIZE, 256, Short.MAX_VALUE)
                            .addGap(28, 28, 28)))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                        .addComponent(editarFButton)
                        .addGap(18, 18, 18)
                        .addComponent(voltarFButton)
                        .addContainerGap())))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(40, 40, 40)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(nomeFLabel)
                    .addComponent(nomeFText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(idadeFLabel)
                    .addComponent(idadeFText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cpfFLabel)
                    .addComponent(cpfFText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(sexoFLabel)
                    .addComponent(mascFRadioButton)
                    .addComponent(femFRadioButton))
                .addGap(18, 18, 18)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(telFLabel)
                    .addComponent(telFText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(endFLabel)
                    .addComponent(endFText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(salarioLabel)
                    .addComponent(salarioText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(espcialLabel)
                    .addComponent(especialText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 78, Short.MAX_VALUE)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(voltarFButton)
                    .addComponent(editarFButton))
                .addContainerGap())
        );

        jTabbedPane1.addTab("Funcionário", jPanel2);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 384, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 469, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

        private void voltarAButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_voltarAButtonActionPerformed
        this.dispose();
    }//GEN-LAST:event_voltarAButtonActionPerformed

    private void voltarFButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_voltarFButtonActionPerformed
        this.dispose();
    }//GEN-LAST:event_voltarFButtonActionPerformed

    private void editarAButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_editarAButtonActionPerformed
        nomeAText.setText("");
        matriculaText.setText("");
        idadeAText.setText("");
        cpfAText.setText("");
        buttonGroup1.clearSelection();
        telAText.setText("");
        endAText.setText("");
        nomeTurmaText.setText("");
        buttonGroup2.clearSelection();
        
    }//GEN-LAST:event_editarAButtonActionPerformed

    private void editarFButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_editarFButtonActionPerformed
        buttonGroup3.clearSelection();
        nomeFText.setText("");
        idadeFText.setText("");
        cpfFText.setText("");
        buttonGroup4.clearSelection();
        telFText.setText("");
        endFText.setText("");
        salarioText.setText("");
        especialText.setText("");
    }//GEN-LAST:event_editarFButtonActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(Edita.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Edita.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Edita.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Edita.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new Edita().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.ButtonGroup buttonGroup2;
    private javax.swing.ButtonGroup buttonGroup3;
    private javax.swing.ButtonGroup buttonGroup4;
    private javax.swing.JLabel cpfALabel;
    private javax.swing.JTextField cpfAText;
    private javax.swing.JLabel cpfFLabel;
    private javax.swing.JTextField cpfFText;
    private javax.swing.JRadioButton dirRadioButton;
    private javax.swing.JButton editarAButton;
    private javax.swing.JButton editarFButton;
    private javax.swing.JLabel endALabel;
    private javax.swing.JTextField endAText;
    private javax.swing.JLabel endFLabel;
    private javax.swing.JTextField endFText;
    private javax.swing.JRadioButton espanholARadioButton;
    private javax.swing.JLabel espcialLabel;
    private javax.swing.JTextField especialText;
    private javax.swing.JRadioButton femARadioButton;
    private javax.swing.JRadioButton femFRadioButton;
    private javax.swing.JRadioButton francesARadioButton;
    private javax.swing.JLabel idadeALabel;
    private javax.swing.JTextField idadeAText;
    private javax.swing.JLabel idadeFLabel;
    private javax.swing.JTextField idadeFText;
    private javax.swing.JRadioButton inglesARadioButton;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JLabel linguaALabel;
    private javax.swing.JRadioButton mascARadioButton;
    private javax.swing.JRadioButton mascFRadioButton;
    private javax.swing.JLabel matriculaLabel;
    private javax.swing.JTextField matriculaText;
    private javax.swing.JLabel nomeALabel;
    private javax.swing.JTextField nomeAText;
    private javax.swing.JLabel nomeFLabel;
    private javax.swing.JTextField nomeFText;
    private javax.swing.JTextField nomeTurmaText;
    private javax.swing.JLabel nometurmaLabel;
    private javax.swing.JRadioButton profRadioButton;
    private javax.swing.JLabel salarioLabel;
    private javax.swing.JTextField salarioText;
    private javax.swing.JLabel sexoALabel;
    private javax.swing.JLabel sexoFLabel;
    private javax.swing.JLabel telALabel;
    private javax.swing.JTextField telAText;
    private javax.swing.JLabel telFLabel;
    private javax.swing.JTextField telFText;
    private javax.swing.JButton voltarAButton;
    private javax.swing.JButton voltarFButton;
    // End of variables declaration//GEN-END:variables
}
